package cn.yanghx.pay.conf.property;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author yanghx
 */
@Component
@ConfigurationProperties("pay.config")
@Data
public class PayProperties {

    /**
     * 微信支付相关配置
     */
    private WechatPayProperties wechat;


    public WechatPayProperties getWechat() {
        return wechat == null ? new WechatPayProperties() : wechat;
    }
}
